<div class="network-status" [class.is-offline]="!isOnline">
  <div
    *ngIf="!isOnline"
    @fadeSlide
    class="offline-banner"
  >
    <nz-alert
      nzType="error"
      [nzMessage]="message"
      [nzShowIcon]="true"
      class="alert-wrapper"
    >
      <button
        nz-button
        nzType="default"
        *ngIf="retryable"
        (click)="handleRetry()"
        class="retry-button"
      >
        重试
      </button>
    </nz-alert>
  </div>
</div>
